package cn.yjh.controller;

import cn.yjh.api.PluginService;
import cn.yjh.client.RPCProxyFactory;
import org.springframework.web.bind.annotation.*;

/**
 * @DESC:
 * @AUTHOR: YouJinhua
 * @DATE: 2021-12-05 16:49:58
 * @VERSION: 1.0
 */
@RestController
@RequestMapping("/plugin")
public class PluginController {

    @GetMapping("delete")
    public boolean deletePlugin(){
        PluginService rpcProxy = RPCProxyFactory.getRPCProxy(PluginService.class,"localhost",8087);
        rpcProxy.deletePlugin();
        return true;
    }
}
